Optimal. Leaf size=112 \[ -\frac {a+b \log \left (c (d+e x)^n\right )}{2 f (f x+g)^2}+\frac {b e^2 n \log (d+e x)}{2 f (d f-e g)^2}-\frac {b e^2 n \log (f x+g)}{2 f (d f-e g)^2}-\frac {b e n}{2 f (f x+g) (d f-e g)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 112, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {2412, 2395, 44} \[ -\frac {a+b \log \left (c (d+e x)^n\right )}{2 f (f x+g)^2}+\frac {b e^2 n \log (d+e x)}{2 f (d f-e g)^2}-\frac {b e^2 n \log (f x+g)}{2 f (d f-e g)^2}-\frac {b e n}{2 f (f x+g) (d f-e g)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 44
Rule 2395
Rule 2412
Rubi steps
\begin {align*} \int \frac {a+b \log \left (c (d+e x)^n\right )}{\left (f+\frac {g}{x}\right )^3 x^3} \, dx &=\int \frac {a+b \log \left (c (d+e x)^n\right )}{(g+f x)^3} \, dx\\ &=-\frac {a+b \log \left (c (d+e x)^n\right )}{2 f (g+f x)^2}+\frac {(b e n) \int \frac {1}{(d+e x) (g+f x)^2} \, dx}{2 f}\\ &=-\frac {a+b \log \left (c (d+e x)^n\right )}{2 f (g+f x)^2}+\frac {(b e n) \int \left (\frac {e^2}{(d f-e g)^2 (d+e x)}+\frac {f}{(d f-e g) (g+f x)^2}-\frac {e f}{(d f-e g)^2 (g+f x)}\right ) \, dx}{2 f}\\ &=-\frac {b e n}{2 f (d f-e g) (g+f x)}+\frac {b e^2 n \log (d+e x)}{2 f (d f-e g)^2}-\frac {a+b \log \left (c (d+e x)^n\right )}{2 f (g+f x)^2}-\frac {b e^2 n \log (g+f x)}{2 f (d f-e g)^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.11, size = 83, normalized size = 0.74 \[ -\frac {a+b \log \left (c (d+e x)^n\right )-\frac {b e n (f x+g) (e (f x+g) \log (d+e x)-d f-e (f x+g) \log (f x+g)+e g)}{(d f-e g)^2}}{2 f (f x+g)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.46, size = 272, normalized size = 2.43 \[ -\frac {a d^{2} f^{2} - 2 \, a d e f g + a e^{2} g^{2} + {\left (b d e f^{2} - b e^{2} f g\right )} n x + {\left (b d e f g - b e^{2} g^{2}\right )} n - {\left (b e^{2} f^{2} n x^{2} + 2 \, b e^{2} f g n x - {\left (b d^{2} f^{2} - 2 \, b d e f g\right )} n\right )} \log \left (e x + d\right ) + {\left (b e^{2} f^{2} n x^{2} + 2 \, b e^{2} f g n x + b e^{2} g^{2} n\right )} \log \left (f x + g\right ) + {\left (b d^{2} f^{2} - 2 \, b d e f g + b e^{2} g^{2}\right )} \log \relax (c)}{2 \, {\left (d^{2} f^{3} g^{2} - 2 \, d e f^{2} g^{3} + e^{2} f g^{4} + {\left (d^{2} f^{5} - 2 \, d e f^{4} g + e^{2} f^{3} g^{2}\right )} x^{2} + 2 \, {\left (d^{2} f^{4} g - 2 \, d e f^{3} g^{2} + e^{2} f^{2} g^{3}\right )} x\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.19, size = 302, normalized size = 2.70 \[ -\frac {b f^{2} n x^{2} e^{2} \log \left (f x + g\right ) - b f^{2} n x^{2} e^{2} \log \left (x e + d\right ) + b d f^{2} n x e + 2 \, b f g n x e^{2} \log \left (f x + g\right ) + b d^{2} f^{2} n \log \left (x e + d\right ) - 2 \, b f g n x e^{2} \log \left (x e + d\right ) - 2 \, b d f g n e \log \left (x e + d\right ) - b f g n x e^{2} + b d f g n e + b g^{2} n e^{2} \log \left (f x + g\right ) + b d^{2} f^{2} \log \relax (c) - 2 \, b d f g e \log \relax (c) + a d^{2} f^{2} - b g^{2} n e^{2} - 2 \, a d f g e + b g^{2} e^{2} \log \relax (c) + a g^{2} e^{2}}{2 \, {\left (d^{2} f^{5} x^{2} - 2 \, d f^{4} g x^{2} e + 2 \, d^{2} f^{4} g x + f^{3} g^{2} x^{2} e^{2} - 4 \, d f^{3} g^{2} x e + d^{2} f^{3} g^{2} + 2 \, f^{2} g^{3} x e^{2} - 2 \, d f^{2} g^{3} e + f g^{4} e^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.42, size = 633, normalized size = 5.65 \[ -\frac {b \ln \left (\left (e x +d \right )^{n}\right )}{2 \left (f x +g \right )^{2} f}-\frac {2 a \,d^{2} f^{2}+2 b d e f g n -2 b \,e^{2} f g n x -2 b \,e^{2} g^{2} n +2 a \,e^{2} g^{2}+2 b \,d^{2} f^{2} \ln \relax (c )+2 b \,e^{2} g^{2} \ln \relax (c )-4 a d e f g +2 b \,e^{2} g^{2} n \ln \left (f x +g \right )-2 b \,e^{2} g^{2} n \ln \left (-e x -d \right )-4 b \,e^{2} f g n x \ln \left (-e x -d \right )+i \pi b \,d^{2} f^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2}+i \pi b \,d^{2} f^{2} \mathrm {csgn}\left (i \left (e x +d \right )^{n}\right ) \mathrm {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2}+i \pi b \,e^{2} g^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2}+i \pi b \,e^{2} g^{2} \mathrm {csgn}\left (i \left (e x +d \right )^{n}\right ) \mathrm {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2}+2 b \,e^{2} f^{2} n \,x^{2} \ln \left (f x +g \right )-2 b \,e^{2} f^{2} n \,x^{2} \ln \left (-e x -d \right )+2 b d e \,f^{2} n x +4 b \,e^{2} f g n x \ln \left (f x +g \right )-i \pi b \,d^{2} f^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i \left (e x +d \right )^{n}\right ) \mathrm {csgn}\left (i c \left (e x +d \right )^{n}\right )+2 i \pi b d e f g \mathrm {csgn}\left (i c \left (e x +d \right )^{n}\right )^{3}-i \pi b \,e^{2} g^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i \left (e x +d \right )^{n}\right ) \mathrm {csgn}\left (i c \left (e x +d \right )^{n}\right )-4 b d e f g \ln \relax (c )+2 i \pi b d e f g \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i \left (e x +d \right )^{n}\right ) \mathrm {csgn}\left (i c \left (e x +d \right )^{n}\right )-2 i \pi b d e f g \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2}-2 i \pi b d e f g \,\mathrm {csgn}\left (i \left (e x +d \right )^{n}\right ) \mathrm {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2}-i \pi b \,d^{2} f^{2} \mathrm {csgn}\left (i c \left (e x +d \right )^{n}\right )^{3}-i \pi b \,e^{2} g^{2} \mathrm {csgn}\left (i c \left (e x +d \right )^{n}\right )^{3}}{4 \left (f x +g \right )^{2} \left (d f -e g \right )^{2} f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.51, size = 169, normalized size = 1.51 \[ \frac {1}{2} \, b e n {\left (\frac {e \log \left (e x + d\right )}{d^{2} f^{3} - 2 \, d e f^{2} g + e^{2} f g^{2}} - \frac {e \log \left (f x + g\right )}{d^{2} f^{3} - 2 \, d e f^{2} g + e^{2} f g^{2}} - \frac {1}{d f^{2} g - e f g^{2} + {\left (d f^{3} - e f^{2} g\right )} x}\right )} - \frac {b \log \left ({\left (e x + d\right )}^{n} c\right )}{2 \, {\left (f^{3} x^{2} + 2 \, f^{2} g x + f g^{2}\right )}} - \frac {a}{2 \, {\left (f^{3} x^{2} + 2 \, f^{2} g x + f g^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.67, size = 173, normalized size = 1.54 \[ \frac {b\,e^2\,n\,\mathrm {atanh}\left (\frac {2\,d^2\,f^3-2\,e^2\,f\,g^2}{2\,f\,{\left (d\,f-e\,g\right )}^2}+\frac {2\,e\,f\,x}{d\,f-e\,g}\right )}{f\,{\left (d\,f-e\,g\right )}^2}-\frac {b\,\ln \left (c\,{\left (d+e\,x\right )}^n\right )}{2\,f\,\left (f^2\,x^2+2\,f\,g\,x+g^2\right )}-\frac {\frac {a\,d\,f-a\,e\,g+b\,e\,g\,n}{d\,f-e\,g}+\frac {b\,e\,f\,n\,x}{d\,f-e\,g}}{2\,f^3\,x^2+4\,f^2\,g\,x+2\,f\,g^2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________